<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<h1>对象的简写</h1>
		<p>属性简写</p>
		<p>函数的简写</p>
		<p>属性名可以用变量拼接</p>
		<script>
		 var name = "曾庆林";
		 var age = 18;
		 var n = "nick";
		 var m = "name";
		 // var obj = {name:name,age:age,leg:2,say:function(){alert(this.name)}};
		 var obj = {name,age,leg:2,[n+m]:"小"+this.name,say(){alert(this.name)}}
		 console.log(obj);
		 // 01 模块开发，promise
		 
		</script>
	</body>
</html>
